QT       += core gui
QT       += sql
QT += printsupport
QT+=network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

INCLUDEPATH += $$PWD/src
INCLUDEPATH += $$PWD/qcustomplot

SOURCES += \
    main.cpp \
    qcustomplot/qcustomplot.cpp \
    src/adminwidget.cpp \
    src/checkhistorydialog.cpp \
    src/importwidget.cpp \
    src/itemdemowidget.cpp \
    src/rdesktoptip.cpp \
    src/repairdialog.cpp \
    src/repairhistorydialog.cpp \
    src/repairwidget.cpp \
    src/slidenavigation.cpp \
    src/loadingwidget.cpp \
    src/mainwindow.cpp \
    src/mes.cpp \
    src/demo.cpp \
    src/login.cpp \
    src/page0.cpp \
    src/page1.cpp \
    src/page2.cpp \
    src/page3.cpp \
    src/page4.cpp \
    src/checkdialog.cpp \
    src/checkitems.cpp \
    src/usedialog.cpp \
    src/userchangedialog.cpp \
    src/verwidget.cpp



HEADERS += \
    qcustomplot/qcustomplot.h \
    src/adminwidget.h \
    src/checkhistorydialog.h \
    src/importwidget.h \
    src/itemdemowidget.h \
    src/rdesktoptip.h \
    src/repairdialog.h \
    src/repairhistorydialog.h \
    src/repairwidget.h \
    src/slidenavigation.h   \
    src/loadingwidget.h \
    src/mainwindow.h \
    src/demo.h \
    src/login.h \
    src/mes.h \
    src/page0.h \
    src/page1.h \
    src/page2.h \
    src/page3.h \
    src/page4.h \
    src/checkdialog.h \
    src/checkitems.h \
    src/usedialog.h \
    src/userchangedialog.h \
    src/verwidget.h


FORMS += \
    src/adminwidget.ui \
    src/checkhistorydialog.ui \
    src/demo.ui \
    src/importwidget.ui \
    src/itemdemowidget.ui \
    src/loadingwidget.ui \
    src/login.ui \
    src/mainwindow.ui \
    src/page0.ui \
    src/page1.ui \
    src/page2.ui \
    src/page3.ui \
    src/page4.ui \
    src/checkdialog.ui \
    src/checkitems.ui \
    src/rdesktoptip.ui \
    src/repairdialog.ui \
    src/repairhistorydialog.ui \
    src/repairwidget.ui \
    src/usedialog.ui \
    src/userchangedialog.ui \
    src/verwidget.ui


TRANSLATIONS += \
    dmPowerLeader_zh_CN.ts

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

include(qtqrcode/qtqrcode.pri)

RESOURCES   += qss/qss.qrc \
    image/image.qrc

DISTFILES += \
    logo.rc
RC_FILE += logo.rc
